#pragma once

using namespace std;

class Grammar
{
public:
	Grammar(string fName);
	~Grammar(void);
	vector<string> getNotTerm();
	vector<string> getTokens();
	vector<string> getLiter();
	vector<string> getTerm();
	int getCharsNumForRule(int stringNum);
private:
	void initGrammar(string fName);
	vector<string> getTokensFromSting(string str);
	vector<string> getLitersFromSting(string str);

	vector<string> notTerm;
	vector<string> tokens;
	vector<string> liter;
	vector<string> rules;
};
